import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<DeviceLogState> buildReducer() {
  return asReducer(
    <Object, Reducer<DeviceLogState>>{
      DeviceLogAction.action: _onAction,
      DeviceLogAction.refresh: _refresh,
    },
  );
}

DeviceLogState _onAction(DeviceLogState state, Action action) {
  final DeviceLogState newState = state.clone();
  return newState;
}

DeviceLogState _refresh(DeviceLogState state, Action action) {
  final DeviceLogState newState = state.clone();
  return newState;
}
